home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODFDev / ODF / Framewrk / FWPart / FWSesion.h < prev    next >
Encoding:
Text File  |  1996-09-17  |  2.6 KB  |  77 lines  |  [TEXT/MPS ]

  1. //========================================================================================
  2. //
  3. //    File:                FWSesion.h
  4. //    Release Version:    $ ODF 2 $
  5. //
  6. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  7. //
  8. //========================================================================================
  9.  
  10. #ifndef FWSESION_H
  11. #define FWSESION_H
  12.  
  13. // ----- OpenDoc Includes -----
  14.  
  15. #ifndef SOM_ODSession_xh
  16. #include <ODSessn.xh>
  17. #endif
  18.  
  19. //========================================================================================
  20. // Forward class declarations
  21. //========================================================================================
  22.  
  23. class FW_CPart;
  24.  
  25. //========================================================================================
  26. // RunTime Info
  27. //========================================================================================
  28.  
  29. #ifdef FW_BUILD_MAC
  30. #pragma segment fwpart2
  31. #endif
  32.  
  33. //========================================================================================
  34. //    class FW_CSession
  35. //========================================================================================
  36.  
  37. class FW_CSession
  38. {
  39.     friend class FW_CPart;
  40.     
  41. //----------------------------------------------------------------------------------------
  42. //    New API
  43. //
  44. public:
  45.     static ODSession*            GetODSession(Environment* ev);
  46.     static ODArbitrator*         GetArbitrator(Environment* ev);
  47.     static ODBinding*             GetBinding(Environment* ev);
  48.     static ODClipboard*         GetClipboard(Environment* ev);
  49.     static ODDispatcher*         GetDispatcher(Environment* ev);
  50.     static ODDragAndDrop*         GetDragAndDrop(Environment* ev);
  51.     static ODInfo*                 GetInfo(Environment* ev);
  52.     static ODLinkManager*         GetLinkManager(Environment* ev);
  53.     static ODMessageInterface*     GetMessageInterface(Environment* ev);
  54.     static ODNameResolver*         GetNameResolver(Environment* ev);
  55.     static ODNameSpaceManager*     GetNameSpaceManager(Environment* ev);
  56.     static ODStorageSystem*     GetStorageSystem(Environment* ev);
  57.     static ODTranslation*         GetTranslation(Environment* ev);
  58.     static ODUndo*                 GetUndo(Environment* ev);
  59.     static ODWindowState*         GetWindowState(Environment* ev);
  60.     
  61.     static ODTypeToken             Tokenize(Environment* ev, ODType type);
  62.     static ODUpdateID            UniqueUpdateID(Environment* ev);
  63.     
  64. //----------------------------------------------------------------------------------------
  65. //    Initialization/Destruction
  66. //
  67. private:
  68.     FW_CSession() {};    // Note that all methods are static
  69.  
  70. //----------------------------------------------------------------------------------------
  71. //    Initialization/Destruction
  72. //
  73. private:
  74.     static ODSession* fgSession;
  75. };
  76.  
  77. #endif